package oop;

public class Unit22 {
	public static void main(String[] args){
		A a1 = new A();
		a1.setName("Hai");
		A a2 = new A();
		a2.setName("Oanh");
		
		B b1 = new B();
		B b2 = new B();
		
		System.out.println("Name: " + a1.getName());
		System.out.println("Name: " + a2.getName());
	}
}

class A {
	private String name;
	
	public void setName(String name){
		this.name = name;
	}
	
	public String getName(){
		return name;
	}
}

class B {
	
}